<?php
class Module_Mediate_ReturnedMoneyPlan extends Module_BaseModule
{
    use Lib_BaseTraitsModule;
    private static $obj = null;
    private $model = null;

    /**
     * 封闭构造
     */
    public function __construct()
    {
        $this->model = new Model_Mediate_ReturnedMoneyPlan();
    } 

    /**
     * Undocumented function
     *
     * @return Module_Mediate_ReturnedMoneyPlan
     */
    public static function getInstance()
    {
        if (empty(self::$obj)) {
            self::$obj = new self();
        }
        return self::$obj;
    }
    public function insert($savePlan,$savePlanDetail){
        return $this->model->insert($savePlan,$savePlanDetail);
    }
    //每天修改打电话状态
    public function updateTodayContactStutus()
    {
        return $this->model->updateTodayContactStutus();
    }
    //每天修改打电话状态
    public function cancelRepay($mediatorId,$caseId)
    {
        return $this->model->cancelRepay($mediatorId,$caseId);
    }
    //根据案件ids修改还款信息
    public function saveByIds($updateDta, $ids,$where=[],$pk = 'id')
    {
        return $this->model->saveByIds($updateDta, $ids,$where,$pk);
    }

}
